﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
using DHQGHN.DAL;
using DHQGHN.DAL.ModelsUpload;

namespace DHQGHN.Services.TDT
{
    [ServiceContract]
    public interface IUploadDataFromClientService
    {
        /// <summary>
        /// VUONGBD
        /// 2015-05-27
        /// Save du lieu house hold va resident khi client upload len
        /// </summary>
        /// <param name="houseHoldArr"></param>
        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "AddDataFromClient")]
        JSONMessageTypeDataUpload AddDataFromClient(TemplateUploadFromClient data);

        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "AddDataFromClientTest")]
        JSONMessageTypeDataUpload AddDataFromClientTest(TemplateUploadFromClient data);

        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "AddAdmUnitExtAndAddress")]
        JSONMessageTypeDataADMAddressUpload AddAdmUnitExtAndAddress(TemplateUploadADMAddressFromClient data);

        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "AddHouseHoldAndResident")]
        JSONMessageTypeDataHouseHoldResident AddHouseHoldAndResident(TemplateUploadHouseHoldResidentFromClientForPM3 data);

        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "AddHouseHoldAndResidentTest")]
        JSONMessageTypeDataHouseHoldResident AddHouseHoldAndResidentTest(TemplateUploadHouseHoldResidentFromClient data); 
    }
}
